package org.hiberlyzer.impl;

import org.hiberlyzer.DataColumn;

public class SimpleDataColumn implements DataColumn
{
	private String name;
	private Class valueClass;
	
	SimpleDataColumn(String name, Class valueClass)
	{
		this.name = name;
		this.valueClass = valueClass;
	}

	public String getName()
	{
		return name;
	}

	public Class getValueClass()
	{
		return valueClass;
	}
	
	public boolean hasMetadata()
	{
		return false;
	}

	public String formatValue(Object value)
	{
		if(value == null)
		{
			return "NULL";
		}
		return value.toString();
	}
}
